<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变量案例</title>

    <script>
        var name, age, email, address, salary;
        name = '小明';
        age = 20;
        eamil = '2121412@qq.com';
        address = '火星';
        salary = 2421214;

        alert('我叫' + name + ',我住在' + address + ',我今年' + age + '岁了,我的邮箱是' + eamil + ',我的工资' + salary + '$');
    </script>


</head>

<body>


</body>

</html>